﻿@model Qu.ComputingContest.Model.Score

@{
    ViewBag.Title = "Delete";
    Layout = "~/Views/Shared/_LayoutIntranet.cshtml";
}

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Score</legend>

    <table>
        <tr>
            <td class="display-label">ScoreID</td>
            <td class="display-field">
                @Html.DisplayFor(model => model.ScoreID)
            </td>

            <td class="display-label">Registration</td>
            <td class="display-field">
                @Html.DisplayFor(model => model.Registration.RegistrationID)
            </td>
        </tr>
        <tr>
            <td class="display-label">TrialID</td>
            <td class="display-field">
                @Html.DisplayFor(model => model.TrialID)
            </td>

            <td class="display-label">RunTime</td>
            <td class="display-field">
                @Html.DisplayFor(model => model.RunTime)
            </td>
        </tr>
    </table>
    <fieldset style="width:63%">
        <legend>Bonuses</legend>
        <div class="editor-field">
            @Html.DisplayFor(model => model.DispalyCorrectColor) Robot displays the correct color on the LCD screen
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.StopAtCorrectFinishBox) Robot stops in the correct finish box
        </div>
    </fieldset>

    <fieldset id="penaltiesFieldSet" style="width:60%">
        <legend>Penalties</legend>
        <div class="editor-field">
            @Html.DisplayFor(model => model.StoppedInFirstHalf) Robot has stopped in the First Half of the track (Left half of the track)
        </div>

        <div class="editor-field">
            @Html.DisplayFor(model => model.StoppedInSecondHalf) Robot has stopped in the Second Half of the track (Right half of the track)
        </div>
    </fieldset>
    <fieldset id="penaltiesForFinalOnly" style="width:60%">
        <legend>Penalties for Final Only</legend>
        <div class="editor-field">
            @Html.DisplayFor(model => model.FellOffBridgeWithinTrack) Robot fell off the bridge but inside the track and can continue
        </div>

        <div class="editor-field">
            @Html.DisplayFor(model => model.FailedToDragBlock) Robot failed to drag the block
        </div>
    </fieldset>
</fieldset>
@using (Html.BeginForm())
{
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}
